import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from '@packages/store'
import './assets/css/reset.css'
import './assets/icons' // icon
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi";
Vue.prototype.handleTree = handleTree
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  ak: 'uocQ9QMgxUwk116UwMIB1YCz49j4ATow'
})
Vue.use(ElementUI, { size: "small" })
Vue.use(VueQuillEditor)
Vue.config.productionTip = false

import "@packages/bpmn-icons";
import "@packages/theme/element-variables.scss";
import { vuePlugin } from "@packages/highlight";
import "highlight.js/styles/atom-one-dark-reasonable.css";
Vue.use(vuePlugin);

import Common from "@packages/components/common";
Vue.use(Common);

import ResetPopover from "@utils/resetPopover";
Vue.directive("r-popover", ResetPopover);

import "@packages/theme/index.scss";

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
